#!/bin/bash  

name=$1
value=$2
path=$3
if [ ! $1 ]|| [ ! $2 ]; then
	echo '参数不对'
    exit 0
fi
echo " k:" $name " v:" $value
a=`uname  -a`
mac="Darwin"
if [[ $a =~ $mac ]];then
   sed -i "" 's/name="'${name}'">.*<\//name="'${name}'">'${value}'<\//g' ${path}
else
    sed -i 's/name="'${name}'">.*<\//name="'${name}'">'${value}'<\//g' ${path}
fi
